package com.syyo.common.domain;


/**
 * @Auther: wangzhong
 * @Date: 2019/6/29 09:50
 * @Description: 统一返回实体类
 */

public class ResultVo<T> {

    private Integer code; //状态码
    private String message; //提示信息
    private T data; //响应数据

    public ResultVo() {
    }

    public ResultVo(Integer code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}